package com.blockmeta.bbs.overallserviceapplication.search.adapter;

import androidx.annotation.Nullable;

import com.blockmeta.bbs.baselibrary.base.adapter.BaseAdapter;
import com.blockmeta.bbs.overallserviceapplication.R;
import com.blockmeta.bbs.overallserviceapplication.pojo.SearchHistoryPOJO;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by author on 2018/10/23.
 */

public class SearchHistoryAdapter extends BaseAdapter<SearchHistoryPOJO,BaseViewHolder> {


    public SearchHistoryAdapter(int layoutResId, @Nullable List<SearchHistoryPOJO> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SearchHistoryPOJO item) {
        helper.setText(R.id.tv_search_history,item.historyword)
        .addOnClickListener(R.id.img_search_del);
    }
}
